<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
  </div>
<div class="well">

	<table class="table table-bordered table-striped">
		<thead>
		  <tr>
			<th>公司id</th>
			<th>公司名称</th>
			<th>提成区间</th>
			<th>操作</th>
		  </tr>
		</thead>
		<tbody>
		<#list page.list as city>
		  <tr>
			<td>
			   ${city.id!""}
			</td>
			<td>
			  ${city.companyname!""}
			</td>
			<td>
				低于${city.delivery_lowermoney }元，提成0元
			</td>
			<td>
				<div class="btn-group">
					<#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
					 	<a class="btn btn-primary" href="/categoryorder/editprice/${city.id}"><i class="icon-trash icon-white"></i> 修改最低提成价格</a>
					 </#if>
					 <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager'>
					 	<a class="btn btn-primary" href="/newOrder/deliveryPriceList/${city.new_city_id}"><i class="icon-trash icon-white"></i> 配送价格设置</a>
					 </#if>
				</div>
			</td>
		  </tr>
		</#list>
		</tbody>
	</table>  
	<#include "../common/paginate.ftl" />
	<@paginate currentPage=page.pageNumber totalPage=page.totalPage actionUrl="/categoryorder/deliveryPrice/" />
</div>
          
</@layout>